<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        if(10>6){
           console.log("ok");
        }else {
           console.log("no");
        }

        var num = 65;
        if(num>90){
           console.log("奖励一辆法拉利！");
        } else if(num>80){
            console.log("奖励一辆摩托车！");
        }else if(num>70){
            console.log("奖励一辆自行车！");
        }else {
            console.log("准备挨打！");
        }

        var i = 1;
        switch(i){
            case 1:console.log("好厉害！");
            break;
            case 2:console.log("还不错！");
            break;
            case 3:console.log("你不行");
            break;
            default:
            console.log("回来挨打！");
        }

        for(var i=1; i<=10; i++){
            console.log(i);
        }

        var j = 10;
        while(j>0){
            console.log(j);
            j--;
        }
    </script>
</body>
</html>